﻿using RedRiver.Framework.XtraCommon.UserAuthentication;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace RedRiver.Framework.XtraCommon.Test
{
    
    
    /// <summary>
    ///这是 TestUserLoginFormBase 的测试类，旨在
    ///包含所有 TestUserLoginFormBase 单元测试
    ///</summary>
    [TestClass()]
    public class TestUserLoginFormBase
    {


        private TestContext testContextInstance;

        /// <summary>
        ///获取或设置测试上下文，上下文提供
        ///有关当前测试运行及其功能的信息。
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region 附加测试特性
        // 
        //编写测试时，还可使用以下特性:
        //
        //使用 ClassInitialize 在运行类中的第一个测试前先运行代码
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //使用 ClassCleanup 在运行完类中的所有测试后再运行代码
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //使用 TestInitialize 在运行每个测试前先运行代码
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //使用 TestCleanup 在运行完每个测试后运行代码
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///UserLoginFormBase 构造函数 的测试
        ///</summary>
        [TestMethod()]
        public void TestUserLoginFormBaseConstructor()
        {
            UserLoginFormBase target = new UserLoginFormBase();
            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }

        /// <summary>
        ///DeleteCurrentUserInfo 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestDeleteCurrentUserInfo()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            string userName = string.Empty; // TODO: 初始化为适当的值
            target.DeleteCurrentUserInfo(userName);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///Dispose 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestDispose()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            bool disposing = false; // TODO: 初始化为适当的值
            target.Dispose(disposing);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///InitUserContextMenu 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestInitUserContextMenu()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            target.InitUserContextMenu();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///InitializeComponent 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestInitializeComponent()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            target.InitializeComponent();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///OnClosed 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestOnClosed()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            EventArgs e = null; // TODO: 初始化为适当的值
            target.OnClosed(e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///OnClosing 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestOnClosing()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            CancelEventArgs e = null; // TODO: 初始化为适当的值
            target.OnClosing(e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///OnLoad 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestOnLoad()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            EventArgs e = null; // TODO: 初始化为适当的值
            target.OnLoad(e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///ProcessLogin 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestProcessLogin()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            string userName = string.Empty; // TODO: 初始化为适当的值
            string password = string.Empty; // TODO: 初始化为适当的值
            bool expected = false; // TODO: 初始化为适当的值
            bool actual;
            actual = target.ProcessLogin(userName, password);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///ReLogin 的测试
        ///</summary>
        [TestMethod()]
        public void TestReLogin()
        {
            UserLoginFormBase target = new UserLoginFormBase(); // TODO: 初始化为适当的值
            target.ReLogin();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///ResetCurrentUserInfo 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestResetCurrentUserInfo()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            target.ResetCurrentUserInfo();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///RetriveUserInfo 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestRetriveUserInfo()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            string userName = string.Empty; // TODO: 初始化为适当的值
            target.RetriveUserInfo(userName);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///SaveCurrentUserInfo 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestSaveCurrentUserInfo()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            string userName = string.Empty; // TODO: 初始化为适当的值
            target.SaveCurrentUserInfo(userName);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///SelectOtherUserMenuItem_Click 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestSelectOtherUserMenuItem_Click()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            object sender = null; // TODO: 初始化为适当的值
            EventArgs e = null; // TODO: 初始化为适当的值
            target.SelectOtherUserMenuItem_Click(sender, e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///UserInfoMenuItem_Click 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestUserInfoMenuItem_Click()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            object sender = null; // TODO: 初始化为适当的值
            EventArgs e = null; // TODO: 初始化为适当的值
            target.UserInfoMenuItem_Click(sender, e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///linkDeleteUserInfo_LinkClicked 的测试
        ///</summary>
        [TestMethod()]
        [DeploymentItem("RedRiver.Framework.XtraCommon.dll")]
        public void TestlinkDeleteUserInfo_LinkClicked()
        {
            UserLoginFormBase_Accessor target = new UserLoginFormBase_Accessor(); // TODO: 初始化为适当的值
            object sender = null; // TODO: 初始化为适当的值
            LinkLabelLinkClickedEventArgs e = null; // TODO: 初始化为适当的值
            target.linkDeleteUserInfo_LinkClicked(sender, e);
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///AuthenServiceUri 的测试
        ///</summary>
        [TestMethod()]
        public void TestAuthenServiceUri()
        {
            Uri expected = null; // TODO: 初始化为适当的值
            Uri actual;
            UserLoginFormBase.AuthenServiceUri = expected;
            actual = UserLoginFormBase.AuthenServiceUri;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///BaseUrl 的测试
        ///</summary>
        [TestMethod()]
        public void TestBaseUrl()
        {
            UserLoginFormBase target = new UserLoginFormBase(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.BaseUrl = expected;
            actual = target.BaseUrl;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///CurrentDate 的测试
        ///</summary>
        [TestMethod()]
        public void TestCurrentDate()
        {
            UserLoginFormBase target = new UserLoginFormBase(); // TODO: 初始化为适当的值
            DateTime expected = new DateTime(); // TODO: 初始化为适当的值
            DateTime actual;
            target.CurrentDate = expected;
            actual = target.CurrentDate;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
    }
}
